﻿using MyCode.Project.Infrastructure.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Domain.Message.Request.Activity
{
    #region 会员本人活动数据
    public class MemberProfitReq
    {
        /// <summary>
        /// 总获利
        /// </summary>
        public decimal TotalProfit { get; set; }

        /// <summary>
        /// 未结获利
        /// </summary>
        public decimal NoSettledProfit { get; set; }

        /// <summary>
        /// 已结获利
        /// </summary>
        public decimal SettledProfit { get; set; }

        /// <summary>
        /// 本人获利来源汇总分页列表
        /// </summary>
        public PageResult<NextMemberProfit> MemberProfitPageList { get; set; }
    }
    
    /// <summary>
    /// 下级的订单中获利情况
    /// </summary>
    public class NextMemberProfit
    {
        /// <summary>
        /// 下级名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 下级订单总消费金额
        /// </summary>
        public decimal TotalAmount { get; set; }

        /// <summary>
        /// 下级订单中本人总获利金额
        /// </summary>
        public decimal SecondProportion { get; set; }
    }
    #endregion


    #region 本人活动数据明细
    public class UserProfitDetailReq
    {
        /// <summary>
        /// 操作金额
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 操作时间
        /// </summary>
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 操作类型 0：结算 1：赚取
        /// </summary>
        public int OperateType { get; set; }

        /// <summary>
        /// 操作类型文本值
        /// </summary>
        public string OperateTypeStr { get; set; }
    }

    #endregion
}
